/**
 * Copyright (C), 2024, Y2 T205
 * FileName: ch01_07
 * Author: Lenovo
 * Date: 2024-01-16 17:00
 * Description:
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */


package com.example.multithreading;


import java.util.stream.IntStream;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Lenovo
 * @create 2024-01-16
 * @since 1.0.0
 */

public class ch02_01 {

    public static void main(String[] args) {
        IntStream.range(0,5).boxed().map(
                i->new Thread(() ->
                        System.out.println(Thread.currentThread().getName()))
        ).forEach(Thread::start);
    }

}
